import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// import './assets/main.css'
import "amfe-flexible/index";

import "normalize.css";
import { Button } from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';
import { Tabbar, TabbarItem } from 'vant';
import { Search } from 'vant';
import { Icon } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Notify } from 'vant';
import { List,Cell } from 'vant';
import { NavBar } from 'vant';
import { Form, Field, CellGroup } from 'vant';
import{ActionSheet} from "vant"
import { Dialog } from 'vant';
import { CountDown } from 'vant';
import { Popup } from 'vant';
import { AddressEdit } from 'vant';
import { Area } from 'vant';
import { AddressList } from 'vant';
import { Toast } from 'vant';
import { Checkbox, CheckboxGroup } from 'vant';
import { RadioGroup, Radio } from 'vant';
import { Stepper } from 'vant';
import { Popover } from 'vant';
import { ShareSheet } from 'vant';
import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant';
import { SubmitBar } from 'vant';
import { Tag } from 'vant';
import { Picker } from 'vant';
import { Switch } from 'vant';
import { ImagePreview } from 'vant';
import { SwipeCell } from 'vant';
import { Empty } from 'vant';
import { ContactCard } from 'vant';
//仓库数据持久化
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App)

app.use(createPinia().use(piniaPluginPersistedstate))
app.use(router)
app.use(Tabbar);
app.use(TabbarItem);
app.use(Icon);
app.use(Search);
app.use(Swipe);
app.use(SwipeItem);
app.use(Notify),
app.use(List),
app.use(Cell),
app.use(NavBar),
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Button);
app.use(ActionSheet);
app.use(Dialog);
app.use(CountDown);
app.use(Popup);
app.use(AddressEdit);
app.use(Area);
app.use(AddressList);
app.use(Toast);
app.use(Checkbox);
app.use(CheckboxGroup);
app.use(Radio);
app.use(RadioGroup);
app.use(Stepper);
app.use(Popover);
app.use(ShareSheet);
app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.use(SubmitBar);
app.use(Tag);
app.use(Picker);
app.use(Switch);
app.use(ImagePreview);
app.use(SwipeCell);
app.use(Empty);
app.use(ContactCard);
app.mount('#app')
